package com.jy.service;

import com.jy.bean.ShoppingTrolley;

import java.util.List;

/**
 * 业务逻辑接口
 * 处理ShoppingTrolley表对应的各种业务逻辑
 */
public interface ShoppingTrolleyService {
    boolean register(ShoppingTrolley st);
    Integer selectByName(String name);
    Integer selectQuantity(Integer user_id,Integer consignee_id);
    Boolean updateQuantity(ShoppingTrolley st);
    List<ShoppingTrolley> selectByUsername(String name);
    Boolean deleteByName(String name);
    Boolean deleteById(Integer id);
    Boolean updateByproductNameQuantity(String productName,String amount);
    List<ShoppingTrolley> selectByUserId(Integer id);
}
